let st = localStorage;

const openId = "openId";
const TokenKey = "client_authorization";
const Url = "MO-SYS-url";

export function getOpenid() {
  // return Cookie.remove(RefreshTokenKey)
  return st.getItem(openId);
}

export function setOpenid(id) {
  // return Cookie.remove(RefreshTokenKey)
  return st.setItem(openId, id);
}

export function getToken() {
  // return Cookie.get(TokenKey)
  return st.getItem(TokenKey);
}

export function setToken(token) {
  // return Cookie.set(TokenKey, token)
  return st.setItem(TokenKey, token);
}

export function removeToken() {
  // return Cookie.remove(TokenKey)
  return st.removeItem(TokenKey);
}

export function getUrl() {
  // return Cookie.remove(RefreshTokenKey)
  return st.getItem(Url);
}

export function setUrl(url) {
  // return Cookie.remove(RefreshTokenKey)
  return st.setItem(Url, url);
}
